<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
	<head>
		<meta charset="utf-8">
		<title>上传完了一道题目</title>
		<style>
		        .file_hide {width: 100%; height: 100%; position: absolute; left: 0; top: 0; opacity: 0;}
		</style>
	</head>
	<body>
		<p th:text="${usermail}"></p>
		<div th:if="${usertype} eq '0'">
			<p>我是老师</p>
		</div>
		<div th:if="${usertype} eq '1'">
			<p>我是学生</p>
		</div>
		<div th:if="${usertype} eq '2'">
			<p>我是管理员</p>
		</div>
		<p th:text="${usermail}"></p>
		<p th:text="${qtype}"></p>
		<p>我是老师</p>
		<h1>恭喜这道题上传成功了</h1>
		题目id<p th:text="${newqinfo.id}"></p>
		题目学科<p th:text="${newqinfo.subject}"></p>
		题目难度 
			<div th:if ="${newqinfo.difficulty} eq '0.2'">
				<p>简单</p>
			</div>
			<div th:if ="${newqinfo.difficulty} eq '0.5'">
				<p>中等</p>
			</div>
			<div th:if ="${newqinfo.difficulty} eq '0.8'">
				<p>困难</p>
			</div>
		题目分数<p th:text="${newqinfo.point}"></p>
		题干<p th:text="${newqinfo.content}"></p>
		题干图片
		<img th:src="@{${newqinfo.picture}}">
		<!-- 选择题要额外显示选项 -->
		<div th:if ="${qtype} eq '0'">
			A：<p th:text="${newqinfo.optiona}"></p>
			B：<p th:text="${newqinfo.optionb}"></p>
			C：<p th:text="${newqinfo.optionc}"></p>
			D：<p th:text="${newqinfo.optiond}"></p>
		</div>
		答案<p th:text="${newqinfo.answer}"></p>
		<!-- 大题题要额外显示答案图片 -->
		<div th:if ="${qtype} eq '3'">
			答案图片<img th:src="@{${newqinfo.answerpic}}">	
		</div>
		<h1>继续上传</h1>
		<form action="/Addingquestion1" enctype='multipart/form-data' method='POST'>
			<input type="submit" name="qtype" value=0> 选择题
			<input type="submit" name="qtype" value=1> 判断题
			<input type="submit" name="qtype" value=2> 填空题
			<input type="submit" name="qtype" value=3> 简答题
		</form>	
		<form action="/backqbank" enctype='multipart/form-data' method='POST'>
				<button type="submit" class="btn btn-default">返回题库</button>  
		</form>	
	</body>
</html>
